<template>
  <div>
    <router-view></router-view>
    <service-bar></service-bar>
    <nav-footer></nav-footer>
  </div>
</template>

<script>
import NavFooter from "./../components/NavFooter";
import ServiceBar from "./../components/ServiceBar";
export default {
  name: "order",
  data() {
    return {
      title: "",
      tip: ""
    };
  },
  components: {
    NavFooter,
    ServiceBar
  },
  mounted() {},
  watch: {
    $route(to) {
      if (to.path === "/order/confirm") {
        console.log('to(/order/confirm)')
      } else if (to.path === "/order/list") {
        console.log('to(/order/list)')
      } else if (to.path === "/order/pay") {
        console.log('to(/order/pay)')
      } else {
        this.title = "订单支付";
        this.tip = "请谨防钓鱼链接或诈骗电话";
      }
    }
  },
  methods: {}
};
</script>

<style lang="scss" scoped>
</style>
